Skip to contentSkip to conversation

Unable to Configure Xen Dom 0 in Jeremy's PVOPS Kernel

DISCUSSION Boris Derzhavets 1 participant 1 message Jul 28, 2009

lore
Share & tools
lore
#0 lore raw
Quoted 3 lines

Uhm? You can't use PCI device passthrough for SCSI or SATA drives?

You use it to passthrough SCSI or SATA _controller_ (HBA).

Pasi,

I understand that . South Bridge ICH9(10)R is located PCI Bus. "lspci -v"  gives me :-

00:1f.2 SATA controller: Intel Corporation 82801IR/IO/IH (ICH9R/DO/DH) 6 port SATA AHCI Controller (rev 02) (prog-if 01 [AHCI 1.0])
        Subsystem: ASUSTeK Computer Inc. Device 8277
        Flags: bus master, 66MHz, medium devsel, latency 0, IRQ 4347
        I/O ports at 9c00 [size=8]
        I/O ports at 9880 [size=4]
        I/O ports at 9800 [size=8]
        I/O ports at 9480 [size=4]
        I/O ports at 9400 [size=32]
        Memory at f9ffe800 (32-bit, non-prefetchable) [size=2K]
        Capabilities: [80] MSI: Mask- 64bit- Count=1/16 Enable+
        Capabilities: [70] Power Management version 3
        Capabilities: [a8] SATA HBA <?>
        Capabilities: [b0] Vendor Specific Information <?>
        Kernel driver in use: ahci

How to manage afterwards ? Link would be fine.

Thanks.
Boris.

--- On Tue, 7/28/09, Pasi Kärkkäinen <[email protected]> wrote:

From: Pasi Kärkkäinen <[email protected]>
Subject: Re: [Xen-devel] Unable to Configure Xen Dom 0 in Jeremy's PVOPS Kernel
To: "Boris Derzhavets" <[email protected]>
Cc: [email protected], "Teo En Ming" <[email protected]>
Date: Tuesday, July 28, 2009, 10:24 AM

Quoted 5 lines · Boris Derzhavets
Quoted 2 lines

Xen supports PCI device passthrough to paravirtualized domUs without any additional hardware support/requirements.

It was never my concern. But , i guess it works for SCSI drives , not SATA.

Uhm? You can't use PCI device passthrough for SCSI or SATA drives?

You use it to passthrough SCSI or SATA _controller_ (HBA). Or a NIC. Or a USB controller. Or a graphics card.

-- Pasi

Quoted 1,306 lines

Boris.

--- On Tue, 7/28/09, Pasi Kärkkäinen <[email protected]> wrote:

From: Pasi Kärkkäinen <[email protected]>
Subject: Re: [Xen-devel] Unable to Configure Xen Dom 0 in Jeremy's PVOPS Kernel
To: "Teo En Ming" <[email protected]>
Cc: "'Boris Derzhavets'" <[email protected]>, [email protected]
Date: Tuesday, July 28, 2009, 8:48 AM

Quoted 6 lines · Teo En Ming

Dear Pasi,

I thought only paravirtualized guests allow PCI devices to be passed through from the Dom 0 host? Fully virtualized guests like Windows are not able to access PCI devices directly in Dom 0.

Xen supports PCI device passthrough to paravirtualized domUs without any additional hardware support/requirements.

PCI device passthrough to HVM domains requires VT-d (iommu) support.

Quoted 2 lines

Does Core 2 Duo support Intel VT-d? Or only in Xeons?

VT-d support is in the chipset. Not many chipsets have it yet.. And there are bugs in the VT-d support in many motherboards..

Quoted 3 lines

I am using Xen 3.4.1 testing code right now. Does it support PCI device pass through?

Yes, I think Xen 3.4.1 has VT-d support. Although the code is still not very mature, especially with graphics cards there are a lot of problems.

See xen-devel and xen-users archives for more information.

-- Pasi

Quoted 1,258 lines

Thank you.

Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics Engineering) BEng(Hons)(Mechanical Engineering)

Technical Support Engineer

Information Technology Department

Asiasoft Online Pte Ltd

Tampines Central 1 #04-01 Tampines Plaza

Singapore 529541

Republic of Singapore

Mobile Phone: +65-9648-9798

MSN: [email protected]

-----Original Message-----

From: Pasi Kärkkäinen <[email protected]>

To: "'Teo En Ming'" <[email protected]>

Cc: 'Boris Derzhavets' <[email protected]>,
[email protected]

Date: Tue, 28 Jul 2009 20:32:10 +0800

Subject: Re: [Xen-devel] Unable to Configure Xen Dom 0 in Jeremy's PVOPS Kernel

Quoted 11 lines · Teo En Ming

Dear Boris,

Any way I can change the emulated display driver in Windows HVM guest to a

better one for game playing?

You can't really do that. Qemu (used in Xen HVM domains) only provides basic

2D display adapter, so it's not really suitable for gaming.

If you want to experiment with unstable/development code, you could try VT-d

to passthrough a graphics adapter (the whole device) to HVM guest.

I think there are also some graphics drivers that operate through the

network, ie. communicate with dom0 graphics hardware, but I don't have any

links to those.

Xen is mostly a server virtualization software/solution nowadays..

-- Pasi

Quoted 84 lines

Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics Engineering)

BEng(Hons)(Mechanical Engineering)

Technical Support Engineer

Information Technology Department

Asiasoft Online Pte Ltd

Tampines Central 1 #04-01 Tampines Plaza

Singapore 529541

Republic of Singapore

Mobile Phone: +65-9648-9798

MSN: [email protected]

-----Original Message-----

From: Boris Derzhavets <[email protected]>

To: [email protected], [email protected]

Date: Tue, 28 Jul 2009 04:19:13 -0700 (PDT)

Subject: RE: [Xen-devel] Unable to Configure Xen Dom 0 in Jeremy's PVOPS

Kernel

It's really exciting ;)

Boris.

--- On Tue, 7/28/09, Teo En Ming <[email protected]> wrote:

Quoted 7 lines

From: Teo En Ming <[email protected]>

Subject: RE: [Xen-devel] Unable to Configure Xen Dom 0 in Jeremy's PVOPS

Kernel

To: "Teo En Ming (Zhang Enming)" <[email protected]>,

[email protected]

Quoted 28 lines
Cc "'Boris Derzhavets'" <[email protected]>,

[email protected]

Date: Tuesday, July 28, 2009, 7:07 AM

Hi,

I have also virtualized Windows XP under Xen 3.4.1 RC8 Dom 0 Kernel

2.6.30 RC6 on OpenSUSE 11.1 Linux 32-bit Host.

Quoted 9 lines

Please see screenshots here:

http://teo-en-ming-aka-zhang-enming.blogspot.com/2009/07/my-windows-xp-hvm-v
[http://teo-en-ming-aka-zhang-enming.blogspot.com/2009/07/my-windows-xp-hvm-v]

irtual-machine-on.html

Quoted 132 lines

Can I change the emulated display adapter driver in Windows XP HVM

guest under Xen to a better one so that I can play games?

Thank you!!!

Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics Engineering)

BEng(Hons)(Mechanical Engineering)

Technical Support Engineer

Information Technology Department

Asiasoft Online Pte Ltd

Tampines Central 1 #04-01 Tampines Plaza

Singapore 529541

Republic of Singapore

Mobile Phone: +65-9648-9798

MSN: [email protected]

-----Original

Message-----

  From: "Teo En Ming (Zhang Enming)"

<[email protected]>

  To: <[email protected]>

Cc 'Boris Derzhavets' <[email protected]>,

[email protected]

  Date: Tue, 28 Jul 2009 19:13:34 +0800

  Subject: RE: [Xen-devel] Unable to Configure Xen Dom 0 in Jeremy's

PVOPS Kernel

Dear All,

  I have managed to virtualize Windows 7 32-bit as a HVM guest on

Xen 3.4.1

  RC8 Dom 0 Kernel 2.6.30 RC6 on OpenSUSE 11.1 Linux 32-bit host

operating

  system.

  Please see screenshots here:

Quoted 9 lines

http://teo-en-ming-aka-zhang-enming.blogspot.com/2009/07/my-windows-7-hvm-vi
[http://teo-en-ming-aka-zhang-enming.blogspot.com/2009/07/my-windows-7-hvm-vi]

Quoted 1 line

[http://teo-en-ming-aka-zhang-enming.blogspot.com/2009/07/my-windows-7-hvm-v
[http://teo-en-ming-aka-zhang-enming.blogspot.com/2009/07/my-windows-7-hvm-v]

i]

Quoted 456 lines

  rtual-machine-on-xen.html

  I have uploaded 24 pictures so far at the time of this writing.

  Regards,

  Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics Engineering)

  BEng(Hons)(Mechanical Engineering)

  Technical Support Engineer

  Information Technology Department

  Asiasoft Online Pte Ltd

  Tampines Central 1 #04-01 Tampines Plaza

  Singapore 529541

  Republic of Singapore

  Mobile: +65-9648-9798

  MSN: [email protected]

  -----Original Message-----

  From: [email protected]

  [mailto:[email protected]] On Behalf Of Pasi

Kärkkäinen

  Sent: Monday, July 27, 2009 11:24 PM

  To: Teo En Ming

Cc Boris Derzhavets; [email protected]

  Subject: Re: [Xen-devel] Unable to Configure Xen Dom 0 in

Jeremy's PVOPS

  Kernel

  On Mon, Jul 27, 2009 at 10:57:23PM +0800, Teo En Ming wrote:

  > Dear Pasi,

  >

  > Any idea on what benchmark tools I can use to measure I/O

performance of

  my

  > virtual machines?

  >

  Well for simple streaming IO tests you can use dd, it supports

multiple

  block sizes, O_DIRECT etc.

  If you need multithreaded/multiprocess tests, or filesystem IO

tests, then

  you need something more sophisticated.. bonnie++, ltp disktest,

fio, iozone

  etc. Google is your friend.

  -- Pasi

  > Thank you.

  >

  > Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics Engineering)

  > BEng(Hons)(Mechanical Engineering)

  >

  > Technical Support Engineer

  >

  > Information Technology Department

  >

  > Asiasoft Online Pte Ltd

  >

  > Tampines Central 1 #04-01 Tampines Plaza

  >

  > Singapore 529541

  >

  > Republic of Singapore

  >

  > Mobile Phone: +65-9648-9798

  >

  > MSN: [email protected]

  >

  >

  > -----Original Message-----

  >

  > From: Pasi Kärkkäinen <[email protected]>

  >

  > To: Teo En Ming <[email protected]>

  >

  > Cc: Boris Derzhavets <[email protected]>,

  [email protected]

  >

  > Date: Mon, 27 Jul 2009 18:01:55 +0300

  >

  > Subject: Re: [Xen-devel] Unable to Configure Xen Dom 0 in

Jeremy's PVOPS

  > Kernel

  >

  >

  >

  >

  > On Mon, Jul 27, 2009 at 10:06:55PM +0800, Teo En Ming wrote:

  >

  > > Dear Boris,

  >

  > >

  >

  > > Based on your given information, I have managed to

configure static IP

  >

  > > address inside OpenSolaris UNIX PV guest.

  >

  > >

  >

  > > These are the two crucial lines:

  >

  > >

  >

  > > echo 192.168.1.45 netmask 255.255.255.0 mtu 1492 >

/etc/hostname.xnf0

  >

  > > echo 192.168.1.102 > /etc/defaultrouter

  >

  > >

  >

  > > Please see screenshot here:

  >

  > >

  >

  > >

Quoted 9 lines

  >

http://3.bp.blogspot.com/_zzjv8MCM2sk/Sm21uPKvVXI/AAAAAAAAAKU/NDQqKSld5v4/s1
[http://3.bp.blogspot.com/_zzjv8MCM2sk/Sm21uPKvVXI/AAAAAAAAAKU/NDQqKSld5v4/s1]

Quoted 1 line

[http://3.bp.blogspot.com/_zzjv8MCM2sk/Sm21uPKvVXI/AAAAAAAAAKU/NDQqKSld5v4/s
[http://3.bp.blogspot.com/_zzjv8MCM2sk/Sm21uPKvVXI/AAAAAAAAAKU/NDQqKSld5v4/s]

1]

Quoted 6 lines

  600-h/03.jpeg

Quoted 9 lines

  >

[http://3.bp.blogspot.com/_zzjv8MCM2sk/Sm21uPKvVXI/AAAAAAAAAKU/NDQqKSld5v4/s
[http://3.bp.blogspot.com/_zzjv8MCM2sk/Sm21uPKvVXI/AAAAAAAAAKU/NDQqKSld5v4/s]

Quoted 1 line

[http://3.bp.blogspot.com/_zzjv8MCM2sk/Sm21uPKvVXI/AAAAAAAAAKU/NDQqKSld5v4/s
[http://3.bp.blogspot.com/_zzjv8MCM2sk/Sm21uPKvVXI/AAAAAAAAAKU/NDQqKSld5v4/s]

]

Quoted 142 lines

  1600-h/03.jpeg]

  >

  > >

  >

  > > May I know whether there are any PV device drivers for

me to install to

  >

  > > improve PV guests' performance? What are the

recommended benchmark tools

  > to

  >

  > > measure I/O performance of PV guests?

  >

  > >

  >

  >

  >

  > PV guest doesn't need any additional drivers. Like the name

PV says, it's

  >

  > paravirtual, and uses the optimized drivers/interfaces

out-of-the-box.

  >

  >

  >

  > -- Pasi

  >

  >

  >

  >

  >

  > _______________________________________________

  >

  > Xen-devel mailing list

  >

  > [email protected]

Quoted 7 lines

  >

  > http://lists.xensource.com/xen-devel

[http://lists.xensource.com/xen-devel]

Quoted 1 line

[http://lists.xensource.com/xen-devel

[http://lists.xensource.com/xen-devel]]

Quoted 3 lines

  [http://lists.xensource.com/xen-devel

[http://lists.xensource.com/xen-devel]

Quoted 1 line

[http://lists.xensource.com/xen-devel

[http://lists.xensource.com/xen-devel]]]

Quoted 12 lines

  _______________________________________________

  Xen-devel mailing list

Quoted 7 lines

  [email protected]

  http://lists.xensource.com/xen-devel

[http://lists.xensource.com/xen-devel]

[http://lists.xensource.com/xen-devel
[http://lists.xensource.com/xen-devel]]

Quoted 11 lines

  No virus found in this incoming message.

  Checked by AVG - www.avg.com [http://www.avg.com/] [http://www.avg.com/

[http://www.avg.com/]]

Quoted 14 lines

  Version: 8.5.339 / Virus Database: 270.13.31/2265 - Release Date:

07/26/09

  17:59:00

Quoted 7 lines

  No virus found in this outgoing message.

  Checked by AVG - www.avg.com [http://www.avg.com/] [http://www.avg.com/

[http://www.avg.com/]]

Quoted 30 lines

  Version: 8.5.375 / Virus Database: 270.13.31/2265 - Release Date:

07/27/09

  17:59:00

  _______________________________________________

  Xen-devel mailing list

Quoted 7 lines

  [email protected]

  http://lists.xensource.com/xen-devel

[http://lists.xensource.com/xen-devel]

[http://lists.xensource.com/xen-devel
[http://lists.xensource.com/xen-devel]]

Quoted 11 lines

  No virus found in this incoming message.

  Checked by AVG - www.avg.com [http://www.avg.com/] [http://www.avg.com/

[http://www.avg.com/]]

Quoted 14 lines

  Version: 8.5.375 / Virus Database: 270.13.31/2265 - Release Date:

07/27/09

  17:59:00

Quoted 7 lines

  No virus found in this outgoing message.

  Checked by AVG - www.avg.com [http://www.avg.com/] [http://www.avg.com/

[http://www.avg.com/]]

Quoted 30 lines

  Version: 8.5.375 / Virus Database: 270.13.31/2265 - Release Date:

07/27/09

  17:59:00

  _______________________________________________

  Xen-devel mailing list

Quoted 7 lines

  [email protected]

  http://lists.xensource.com/xen-devel

[http://lists.xensource.com/xen-devel]

[http://lists.xensource.com/xen-devel
[http://lists.xensource.com/xen-devel]]

_______________________________________________

Xen-devel mailing list

[email protected]

http://lists.xensource.com/xen-devel [http://lists.xensource.com/xen-devel]

No virus found in this incoming message.

Checked by AVG - www.avg.com [http://www.avg.com/]

Version: 8.5.375 / Virus Database: 270.13.31/2265 - Release Date: 07/27/09

17:59:00

No virus found in this outgoing message.

Checked by AVG - www.avg.com [http://www.avg.com/]

Version: 8.5.375 / Virus Database: 270.13.31/2265 - Release Date: 07/27/09

17:59:00

Quoted 7 lines

_______________________________________________

Xen-devel mailing list

[email protected]

http://lists.xensource.com/xen-devel [http://lists.xensource.com/xen-devel]

Quoted 8 lines

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel